*** Settings ***
Documentation       通过ipmi接口测试openUBMC的psu板卡是否在位
Resource            ../../test_function/ipmi/ipmi.robot
Library             OperatingSystem
Library             BuiltIn

Test Tags           Ipmi_Riser_Info

*** Variables ***
${input}                    raw 0x30 0x90 0x29 0x05 0x00
${expected_rc}              ${0}
${expected_output}          01


*** Test Cases ***
Get IPMI PSU Presence
    [Documentation]    带认证的IPMI的PSU板卡是否在位
    [Tags]  Get_PSU_Presence_Via_IPMI
    ${rc}    ${output}=  Run External Ipmi Command    ${input}
    Log    Command Output: ${output}
    Should Be Equal    ${rc}    ${expected_rc}    msg=${output}
    Should Contain    ${output}    ${expected_output}


